home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / chop < prev    next >
Encoding:
Text File  |  2002-10-28  |  453 b   |  21 lines

  1. Synopsis:
  2.    $chops(<num> <text>)
  3.  
  4. Technical:
  5.    This function chops <num> characters from the end of <text>.
  6.  
  7. Practical:
  8.    It is an excellent shortcut for mid(6) expressions starting at the first
  9.    character of <text>.
  10.  
  11. Returns:
  12.    <text> with <num> characters removed from the end
  13.  
  14. Examples:
  15.    $chop(5 abcdef)          /* returns "a" */
  16.    $chop(2 fnord)           /* returns "fno" */
  17.  
  18. See Also:
  19.    left(6); right(6); mid(6)
  20.  
  21.